Templates

Managing Templates

Templates are stored in /templates folder. They have .tpl extension but they are normal HTML files you can edit from your favorite editor (like FrontPage, Macromedia Dreamweaver or even EditPlus). Make sure not to rename or remove special tags {} (like {ARTILCE_ID}, {ARTICLE_TITLE, etc.). Every respective template matches specific action or event. Pages usually consist of several templates (i.e. show_breadcrumbs.tpl, show_all_articles.tpl, show_votes.tpl, etc.)

Templates can also be easily controlled in Administration area, where you can amend every respective template and save your changes without having to use any third party HTML editor.

Template name Description
article_Full.tpl Full article page display, except for the header
article_Short.tpl Short article view, for main page and category pages
article_tools_email_print.tpl Email to a friend, print version, and PDF version stripe for articles
article_tools_comment_link.tpl In case commenting article is allowed, this is apended to article_tools_email_print.tpl
article_breadcrumbs.tpl Breadcrumb display
article_comments_page.tpl Central template for showing comments
article_comment.tpl Individual comment
article_comment_add.tpl Display message after posting a comment
show_votes.tpl Display properties for voting section on full article page.
show_related_links.tpl "Show related links" section
   
index.tpl  
calendar.tpl Calendar template
box_featuredAuthor.tpl "Featured Author" box template
box_mostCommented.tpl "Most Commented" box template
box_mostPopular.tpl "Most Popular" box template
box_newsletter.tpl Newsletter form template
box_search.tpl Search form (box) template
box_sections.tpl Sections (categories and subcategories) template
box_siteTools.tpl Site tools template
box_syndication.tpl Syndication (RSS feeds) box template
box_poll.tpl Poll form template
box_poll_answer.tpl Poll answers template
   
category_Main.tpl Main category template, you can have one for each respective category
category_no_articles.tpl No article in category message
ctg_test.tpl Example of custom category template - not used by system
ctgheader_test.tpl Example of custom header template - not used by system
   
category_archive_link.tpl Link to archive in category
show_pager.tpl Pagination on category pages
show_rss.tpl Rss link in category
show_sort.tpl Sort links and ASC/DESC direction
   
footer.tpl Header file
header.tpl Footer file
framework.tpl Holder for all pages
page_archive.tpl Main archive page
sections_category_menu.tpl Category links
sections_subcategory_menu.tpl Subcategory links
show_category_head_links.tpl Last articles links in categoey
show_category_headers.tpl Header for category last articles
   
search_results.tpl Search result main form
search_result_short.tpl Short body view with search pattern
show_author_info.tpl Author/user info page
users_sign_up.tpl Users sign-up page (registration)
   
poll_result_question.tpl Poll question template
poll_result_answer.tpl Poll answers template
polls_all.tpl Show all polls
   
close_site.tpl Message when the site is closed

List of tags used in templates

 

{TAG} Used In (templates) Used For (short description of tag)
{ARTICLE_TOOLS}
  • article_Full.tpl
Shows email to a friend, print version and comment link template
{ARTICLE_DATE}
  • article_Full.tpl
Displays date when current article is published
{ARTICLE_AUTHOR}
  • article_Full.tpl
Displays author for current article
{ARTICLE_IMAGE}
  • article_Full.tpl
Displays uploaded image for current article
{ARTICLE_BODY}
  • article_Full.tpl
Displays full body of uploaded article
{ARTICLE_TIMES_READ}
  • article_Full.tpl
Displays how many times current article has been read
{ARTICLE_RELATED_NEWS}
  • article_Full.tpl
Shows related news template
{ARTICLE_VOTE}
  • article_Full.tpl
Shows voting form template
{ARTICLE_TOOL_COMMENT}
  • article_Full.tpl
Shows comments link template
{ARTICLE_COMMENTS}
  • article_Full.tpl
  • article_comment.tpl
Shows article comments template
{ARTICLE_TITLE}
  • article_comment_add.tpl
  • article_comments_page.tpl
  • show_related_links.tpl
  • search_result_short.tpl
Displays article title
{ARTICLE_CREATED}
  • show_related_links.tpl
Displays date when article is created in "related news" section
{ARTICLES}
  • show_author_info.tpl
Displays list of articles posted by current author
{ARTICLE_SHORT}
  • category_Main.tpl
Shows short article view template on category page
{AUTHOR}
  • article_Short.tpl
  • headlines.tpl
  • box_featuredAuthor.tpl
  • search_result_short.tpl
Displays article author
{BOX_SEARCH}
  • header.tpl
Shows search form (box) template
{BOX_SECTIONS}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
  • framework_withouth_right.tpl
Shows sections (categories and subcategories) template
{BOX_SYNDICATION}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
  • framework_withouth_right.tpl
Shows syndication (RSS feeds) box template
{BOX_NEWSLETTER}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
  • framework_withouth_right.tpl
Shows newsletter form template
{BOX_POLL}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
  • framework_withouth_right.tpl
Shows poll form template
{BOX_CATEGORY_HEADERS}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
Shows "More Top News" box template
{BOX_MOST_POPULAR}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
Shows "Most Popular" box template
{BOX_MOST_COMMENTED}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
Shows "Most Commented" box template
{BOX_FEATURED_AUTHOR}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
Shows "Featured Author" box template
{BODY}
  • article_Short.tpl
  • headlines.tpl
Displays short body of uploaded article
{BIO}
  • box_featuredAuthor.tpl
  • show_author_info.tpl
Displays short biography for current author
{BREADCRUMBS}
  • article_Full.tpl
  • article_breadcrumbs.tpl
Shows breadcrumbs template
{CATEGORY}
  • advanced_search.tpl
  • users_sign_up.tpl
Displays list of all categories/subcategories
{CAPTION_TITLE}
  • article_Full.tpl
  • article_Short.tpl
  • headlines.tpl
Displays article title
{CATEGORY_MENU}
  • box_sections.tpl
Shows category menu template
{CATEGORY_NAME}
  • category_Main.tpl
  • sections_category_menu.tpl
  • sections_subcategory_menu.tpl
  • show_category_headers.tpl
Displays category/subcategory name
{CATEGORY_LINK_RSS}
  • category_Main.tpl
Shows rss drop-down menu template in category
{CALENDAR}
  • index.tpl
  • article_Full.tpl
  • category_Main.tpl
  • framework.tpl
  • framework_withouth_right.tpl
Shows calendar (archive) template
{CALENDAR_BODY}
  • calendar.tpl
Displays dates
{CREATED}
  • article_Short.tpl
  • headlines.tpl
  • search_result_short.tpl
Displays date when article is created
{CLOSING_REASON}
  • close_site.tpl
Displays reason for closing site message
{EMAIL}
  • show_author_info.tpl
Displays author email
{FEATURED_NEWS}
  • index.tpl
Shows AJAX headline rotation template on main page
{IMAGE}
  • article_Short.tpl
  • headlines.tpl
Displays uploaded image
{LATEST_NEWS}
  • index.tpl
Shows short article view template on main page
{LOGIN_INFO}
  • header.tpl
Displays "Log in" or "Log out" link and info whether the user is logged in
{LINKS}
  • show_category_headers.tpl
Displays individual article links for each respective category in "More Top News" section
{LNC_0} - {LNC_6}
  • calendar.tpl
Displays days of the week
{MOST_COMMENT_ARTICLES}
  • box_mostCommented.tpl
Displays list of articles with most comments
{MOST_READING_ARTICLES}
  • box_mostPopular.tpl
Displays list of most popular articles
{MONTH}
  • calendar.tpl
Displays current month
{NAME}
  • show_author_info.tpl
Displays author name
{NUM_POSTED}
  • article_tools_comment_link.tpl
Displays how many comments has been posted for current article
{PAGINATION}
  • category_Main.tpl
Shows pagination template in category
{POLLS}
  • polls_all.tpl
Displays list of all polls
{POLL_NAME}
  • box_poll.tpl
Displays current poll name
{POLL_QUESTION}
  • box_poll.tpl
  • poll_result_question.tpl
Displays current poll question
{POLL_ANSWERS}
  • box_poll.tpl
Shows poll answer form template
{POLL_ANSWER}
  • box_poll_answer.tpl
Displays list of poll answers
{PWP_CONTACT_LINK}
  • header.tpl
Displays "Contact us" link
{REVIEW}
  • show_votes.tpl
Displays rating for current article
{SEARCH_BODY}
  • search_results.tpl
Shows short article view template in search results
{SITEMAP_LINK}
  • header.tpl
Displays "Sitemap" link
{SHOW_COMMENTS}
  • article_comments_page.tpl
Displays list of existing comments
{SHOW_AUTHOR_LINK}
  • article_Short.tpl
Displays link to author page
{SHOW_PAGER}
  • search_results.tpl
Shows pagination
{SHORT_BODY}
  • search_result_short.tpl
Displays short article view
{SHOW_TOTAL}
  • show_pager.tpl
Displays total amount of articles in category/subcategory
{SHOW_DISPLAYING}
  • show_pager.tpl
Displays current number of articles on page
{SHOW_PAGES}
  • show_pager.tpl
Displays total amount of pages
{SUB_CATEGORY_MENU}
  • sections_category_menu.tpl
Shows subcategory menu template
{SORT_BY}
  • category_Main.tpl
Shows sort links and ASC/DESC direction template
{TITLE}
  • article_breadcrumbs.tpl
Displays article title in breadcrumb template
{TOTAL}
  • poll_result_question.tpl
Displays total number of votes
{USERNAME}
  • show_author_info.tpl
Displays author username
{VOTE_NUMBER}
  • show_votes.tpl
Displays total number of votes for current article
{WWW}
  • show_author_info.tpl
Displays authors website link
{YEAR}
  • calendar.tpl
Displays current year
     

Template structure flowcharts